hvm/dmop: implement COPY_{TO,FROM}_GUEST_BUF() in terms of raw accessors
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Apr 2017 07:40:22 +0000 (09:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Apr 2017 07:42:47 +0000 (09:42 +0200)
commita9404c0e530554078300d7f2a1c9858f3407c7ae
tree015231e92c5a5767c3c8559328f1032c3e1d5340
parent60f07f8adb5d0473b8e820509f2a6dfaa5443ca2
hvm/dmop: implement COPY_{TO,FROM}_GUEST_BUF() in terms of raw accessors

This also allows the usual cases to be simplified, by omitting an unnecessary
buf parameters, and because the macros can appropriately size the object.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jennifer Herbert <Jennifer.Herbert@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
This does only extend to the functionality here, specifically not to
the use of all-upper-case names for the macros:

Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/x86/hvm/dm.c